﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="CRM.Web.ServiceQualityRepot.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
</head>
<body>
    <form id="form1" runat="server"  defaultbutton="btnSearch" >
<table border="0" cellpadding="0" cellspacing="0" id="tTitle">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" Text="质量信息报告列表" ></asp:Label></div>
    </div>
	
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table>
    <div id="divMain" >
    <div style="width: 100%">
        <div class="listdiv">
            <table border="0" cellpadding="0" cellspacing="0" class="search"  align="center">
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            状态:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlSTATUS" runat="server" CssClass="ddl">
                        </asp:DropDownList>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            创建时间:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtCREATETIMEBegin" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>-<asp:TextBox
                            ID="txtCREATETIMEEnd" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            代理商名称:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtAGENCYNAME" runat="server" CssClass="txt" MaxLength="64" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title">
                        &nbsp;
                    </td>
                    <td class="content">
                        <div style="width: 100px;" class="nowrap">
                            <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                                OnClick="btnSearch_Click" /></div>
                    </td>
                </tr>
            </table>
            <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" 
                AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" 
                OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="True" 
            AllowSorting="True" Width="100%" SortExpressionValue="SERVICEREPOTID">
            <Columns>
			    <asp:TemplateField HeaderText="编号" SortExpression="SERVICEREPOTID">
                    <ItemTemplate>
                        <asp:HyperLink id="hlModifySERVICEREPOTID" runat="server" NavigateUrl='<%# Eval("SERVICEREPOTID", ModifyUrl) %>' Text='<%# Bind("SERVICEREPOTID") %>'>详细</asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="出厂编号" SortExpression="VINCODE">
                    <ItemTemplate>
                        <asp:HyperLink id="hlModifyVINCODE" runat="server" NavigateUrl='<%# Eval("SERVICEREPOTID", ModifyUrl) %>' Text='<%# Bind("VINCODE") %>'>详细</asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
			<asp:BoundField DataField="STATUS" HeaderText="状态"  SortExpression="STATUS" />
			<asp:BoundField DataField="AGENCYNAME" HeaderText="代理商名称"  SortExpression="AGENCYNAME"  Visible="false" />
			<asp:BoundField DataField="AGENTSERVICESMANAGER" HeaderText="代理商服务经理"  SortExpression="AGENTSERVICESMANAGER" Visible="false"  />
			<asp:BoundField DataField="SERVICEMANAGERPHONE" HeaderText="服务经理电话"  SortExpression="SERVICEMANAGERPHONE"  Visible="false" />
			<asp:BoundField DataField="CUSTOMERNAME" HeaderText="客户姓名"  SortExpression="CUSTOMERNAME" />
			<asp:BoundField DataField="CUSTOMERTEL" HeaderText="客户电话"  SortExpression="CUSTOMERTEL" />
			<asp:BoundField DataField="CONTACT" HeaderText="联系人"  SortExpression="CONTACT" />
			<asp:BoundField DataField="CONTACTTEL" HeaderText="联系人电话"  SortExpression="CONTACTTEL" />
			<asp:BoundField DataField="MAINTENANCESTAFF" HeaderText="维修人员"  SortExpression="MAINTENANCESTAFF" />
			<asp:BoundField DataField="MAINTENANCESTAFFTEL" HeaderText="维修人员电话"  SortExpression="MAINTENANCESTAFFTEL" />
			<asp:BoundField DataField="MAINTENANCEDATE" HeaderText="维修日期"  SortExpression="MAINTENANCEDATE"  DataFormatString="{0:yyyy-MM-dd}" />
			<asp:BoundField DataField="MODELS" HeaderText="机型"  SortExpression="MODELS" />
			<asp:BoundField DataField="PRODUCTCODE" HeaderText="产品型号"  SortExpression="PRODUCTCODE" />
			<asp:BoundField DataField="MANUFACTUREDATE" HeaderText="制造日期"  SortExpression="MANUFACTUREDATE"  Visible="false"  DataFormatString="{0:yyyy-MM-dd}" />
			<asp:BoundField DataField="SALEDATE" HeaderText="销售日期"  SortExpression="SALEDATE"  DataFormatString="{0:yyyy-MM-dd}" />
			<asp:BoundField DataField="WORKINGHOURS" HeaderText="工作小时"  SortExpression="WORKINGHOURS" />
			<asp:BoundField DataField="PARTSHOURS" HeaderText="零部件小时"  SortExpression="PARTSHOURS" />
			<asp:BoundField DataField="FAILUREPARTSWARRANTY" HeaderText="故障件保修期"  SortExpression="FAILUREPARTSWARRANTY"  Visible="false" />
			<asp:BoundField DataField="SELFTRANSFORMATION" HeaderText="自行改造"  SortExpression="SELFTRANSFORMATION"  Visible="false" />
			<asp:BoundField DataField="FAULTNAME" HeaderText="故障件名称"  SortExpression="FAULTNAME"  Visible="false" />
			<asp:BoundField DataField="FAULTDRAWINGNO" HeaderText="故障件图号"  SortExpression="FAULTDRAWINGNO" Visible="false" />
			<asp:BoundField DataField="FAULTMANUFACTURERCODE" HeaderText="故障件厂家代码"  SortExpression="FAULTMANUFACTURERCODE" Visible="false" />
			<asp:BoundField DataField="FAULTLOCATIONCODE" HeaderText="故障部位代码"  SortExpression="FAULTLOCATIONCODE"  Visible="false" />
			<asp:BoundField DataField="FAULTCODE" HeaderText="故障代码"  SortExpression="FAULTCODE"  Visible="false" />
			<asp:BoundField DataField="AREACODE" HeaderText="地面代码"  SortExpression="AREACODE" Visible="false" />
			<asp:BoundField DataField="ENVIRONMENTALCODE" HeaderText="环境代码"  SortExpression="ENVIRONMENTALCODE"  Visible="false" />
			<asp:BoundField DataField="CONDITIONCODE" HeaderText="工况代码"  SortExpression="CONDITIONCODE"  Visible="false" />
			<asp:BoundField DataField="BOOMTYPE" HeaderText="动臂类型"  SortExpression="BOOMTYPE"  Visible="false" />
			<asp:BoundField DataField="BUCKETTYPE" HeaderText="铲斗类型"  SortExpression="BUCKETTYPE"  Visible="false" />
			<asp:BoundField DataField="SPECIALUSE" HeaderText="特殊使用"  SortExpression="SPECIALUSE"  Visible="false" />
			<asp:BoundField DataField="FAULTWORKPLANE" HeaderText="故障机工作所在地"  SortExpression="FAULTWORKPLANE" Visible="false" />
			<asp:BoundField DataField="PROVINCE" HeaderText="省"  SortExpression="PROVINCE"  Visible="false" />
			<asp:BoundField DataField="CITY" HeaderText="市/县"  SortExpression="CITY"  Visible="false" />
			<asp:BoundField DataField="VILLAGE" HeaderText="乡/镇"  SortExpression="VILLAGE"  Visible="false" />
			<asp:BoundField DataField="SYMPTOM" HeaderText="故障现象"  SortExpression="SYMPTOM"  Visible="false" />
			<asp:BoundField DataField="FAILUREREASON" HeaderText="故障原因"  SortExpression="FAILUREREASON"  Visible="false" />
			<asp:BoundField DataField="AGENTCOMMENTS" HeaderText="代理商处理意见"  SortExpression="AGENTCOMMENTS"  Visible="false" />
			<asp:BoundField DataField="FAILUREOF" HeaderText="故障程度"  SortExpression="FAILUREOF"  Visible="false" />
			<asp:BoundField DataField="FAULTTYPE" HeaderText="故障类型"  SortExpression="FAULTTYPE" Visible="false"  />
			<asp:BoundField DataField="APPROACH" HeaderText="处理方式"  SortExpression="APPROACH"  Visible="false" />
			<asp:BoundField DataField="INFORMATIONKIND" HeaderText="信息种类"  SortExpression="INFORMATIONKIND"   Visible="false" />
			<asp:BoundField DataField="ANSWERDEPARTMENT" HeaderText="回答部门"  SortExpression="ANSWERDEPARTMENT"  Visible="false" />
			<asp:BoundField DataField="IMPORTANCE" HeaderText="客户服务中心重要度"  SortExpression="IMPORTANCE"  Visible="false" />
			<asp:BoundField DataField="URGENCY" HeaderText="客户服务中心紧急度"  SortExpression="URGENCY"  Visible="false" />
			<asp:BoundField DataField="INTEGRATEDDETERMINE" HeaderText="综合判定"  SortExpression="INTEGRATEDDETERMINE"  Visible="false" />
			<asp:BoundField DataField="FAILURERETURN" HeaderText="故障件是否返回"  SortExpression="FAILURERETURN"  Visible="false" />
			<asp:BoundField DataField="RETURNDATE" HeaderText="返回时间"  SortExpression="RETURNDATE"  Visible="false" />
			<asp:BoundField DataField="FAILURERATE" HeaderText="故障率"  SortExpression="FAILURERATE" />
			<asp:BoundField DataField="SERVICESDIVISIONCOMMENTS" HeaderText="用户服务科意见"  SortExpression="SERVICESDIVISIONCOMMENTS"  Visible="false" />
			<asp:BoundField DataField="VEHICLEPLATEIMAGE" HeaderText="整车铭牌图片"  SortExpression="VEHICLEPLATEIMAGE"  Visible="false" />
			<asp:BoundField DataField="PICTURECONDITIONIMAGE" HeaderText="工况图片"  SortExpression="PICTURECONDITIONIMAGE" Visible="false" />
			<asp:BoundField DataField="VISIONPICTURE" HeaderText="故障部位整体远景图片"  SortExpression="VISIONPICTURE" Visible="false" />
			<asp:BoundField DataField="CLOSERANGEPICTURES" HeaderText="故障部位近景图片"  SortExpression="CLOSERANGEPICTURES" Visible="false" />
			<asp:BoundField DataField="MACROPICTURE" HeaderText="故障现象微距图片"  SortExpression="MACROPICTURE" Visible="false" />
			<asp:BoundField DataField="DEPARTMENTID" HeaderText="部门编号"  SortExpression="DEPARTMENTID" Visible="false" />
			<asp:BoundField DataField="DEPARTMENTCODE" HeaderText="部门代码"  SortExpression="DEPARTMENTCODE" Visible="false" />
			<asp:BoundField DataField="DEPARTMENTNAME" HeaderText="部门名称"  SortExpression="DEPARTMENTNAME" Visible="false" />
			<asp:BoundField DataField="CREATETIME" HeaderText="创建时间"  SortExpression="CREATETIME" DataFormatString="{0:yyyy-MM-dd}" />
			<asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号"  SortExpression="CREATEPEOPLEID"  Visible="false" />
			<asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人"  SortExpression="CREATEPEOPLE" />
			<asp:BoundField DataField="LASTMODIFYPEOPLEID" HeaderText="最后修改人编号"  SortExpression="LASTMODIFYPEOPLEID"  Visible="false" />
			<asp:BoundField DataField="LASTMODIFYPEOPLE" HeaderText="最后修改人"  SortExpression="LASTMODIFYPEOPLE" Visible="false"  />
			<asp:BoundField DataField="LASTMODIFYTIME" HeaderText="最后修改时间"  SortExpression="LASTMODIFYTIME" DataFormatString="{0:yyyy-MM-dd}"  Visible="false" />
			<asp:BoundField DataField="REMARK" HeaderText="备注"  SortExpression="REMARK"  Visible="false" />
			<asp:BoundField DataField="BUSINESSDIVISIONID" HeaderText="事业部编号"  SortExpression="BUSINESSDIVISIONID"  Visible="false" />
			<asp:BoundField DataField="BUSINESSDIVISIONNAME" HeaderText="事业部名称"  SortExpression="BUSINESSDIVISIONNAME"  Visible="false" />
			<asp:BoundField DataField="BUSINESSDIVISIONCODE" HeaderText="事业部代码"  SortExpression="BUSINESSDIVISIONCODE" Visible="false" />
			<asp:TemplateField HeaderText="操作" ShowHeader="False">
                <itemtemplate>
                <div style="white-space: nowrap;"><asp:HyperLink id="hlModify" runat="server" NavigateUrl='<%# Eval("SERVICEREPOTID", ModifyUrl) %>'>详细</asp:HyperLink>
                <asp:LinkButton id="lbtnDelete" runat="server" Text="删除" CommandName="Delete" CausesValidation="False" OnClientClick="return confirm('您确认要删除此条记录吗？');"></asp:LinkButton>            
                </div>
				</itemtemplate>
            </asp:TemplateField>
            </Columns>	
            <RowStyle CssClass="row" />
            <AlternatingRowStyle CssClass="row2" />
            <HeaderStyle CssClass="header" />	
            <PagerStyle CssClass="pager" />	
        </dp:WebGridView>
        </div>
    </div>
</div>
    </form>
</body>
</html>
